<div class="uploads form">
<?php echo $form->create('Upload', array('type' => 'file'));?>
	<fieldset>
 		<legend><?php __('Edit Upload');?></legend>
	<?php
		echo $form->input('id');
		echo $form->input('portfolio_id', array('empty'=>true));
		echo $form->input('title');
		echo $form->input('order');
	?>
	<?php if(!empty($this->data['Upload']['filename'])) {
		echo $lightbox->img(null, $this->data['Upload']['dir'] . DS . $this->data['Upload']['filename'], array('title' => $this->data['Upload']['title']), array(), 'thumb');
	} ?>
	<?php
		echo $form->input('filename', array('type' => 'file','label' => __('Upload a new file', true)));
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Delete', true), array('action'=>'delete', $form->value('Upload.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Upload.id'))); ?></li>
		<li><?php echo $html->link(__('List Uploads', true), array('action'=>'index'));?></li>
	</ul>
</div>
